package com.zzy.springbootdemo.design_01_factory.spring.autowire;

import com.zzy.springbootdemo.design_01_factory.spring.common.Constants;
import com.zzy.springbootdemo.design_01_factory.spring.service.RewardSpringService;
import org.springframework.stereotype.Service;

import java.util.HashMap;

/**
 * 工厂模式3
 */
@Service
public class RewardAutowire extends RewardConfig{


    public void getReward(){
        RewardSpringService rewardSpringService = rewardAutoWireMap.get(Constants.REWARD.VIRTUAL_REWORD);
        rewardSpringService.giveReword(555L,666L,"reward_003",new HashMap<>());
    }

}
